﻿using BLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace _1213G3RIKAO.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class AdderController : ControllerBase
    {
        public AdderController(AdderBLL bll)
        {
            Bll = bll;
        }

        public AdderBLL Bll { get; }

        [HttpPost("AdderInsert")]
        public int AdderInsert(Adder adder)
        {
            return Bll.AdderInsert(adder);
        }

        [HttpGet("AdderShow")]
        public dynamic AdderShow()
        {
            return Bll.AdderShow();
        }
    }
}
